package com.zhuzg.mapper;

import com.zhuzg.pojo.po.StorageInPo;
import com.zhuzg.pojo.po.StoragePO;
import com.zhuzg.pojo.request.StorageInItem;
import com.zhuzg.pojo.request.StorageRequestDto;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.scheduling.annotation.Scheduled;

import java.util.List;
import java.util.Map;

@Mapper
public interface StorageMapper {
    List<StoragePO> select(StorageRequestDto condin);

    /**
     * 插入主表
     * @param storagePo
     */
    void insert(StorageInPo storagePo);

    void insertItmes(List<StorageInItem> inItems);

    void deleteStorageIn(List<Integer> idList);

    void delteStorageInItems(List<Integer> idList);

    void update(StorageInPo storagePo);

    void delteStorageInItemsByInId(Integer id);

    @Select("select * from mes_storage where id=#{value}")
    Map getId(int id);

}
